#pragma once

#include <QObject>
#include <QMessageBox>
#include "type.h"

class MapHandleObject : public QObject
{
	Q_OBJECT

public:
	static MapHandleObject& getInstance();
	void setGpsPose(const GpsInfo& gps);

signals:
	void sendText(const QString& text);
	void updatePose(const double& x,
		const double& y, 
		const double& roll,
		const double& pitch,
		const double& yaw);


public slots:
	void getCoordinate(QString lon, QString lat);
	void onSendText2Html(const QString &msg);
	void onRecvMessage(const QString &msg);
	void receiveText(const QString &text);
	
private:
	MapHandleObject() {};
	MapHandleObject(const MapHandleObject&) {}
	MapHandleObject& operator= (const MapHandleObject&) {}

private:
	static MapHandleObject instance_;
};
